package com.zhangc.blog.admin.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 功能描述:<br>
 *
 * @author wx:fdzhangc
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class UserEntity implements Serializable {
    private static final long serialVersionUID = 1582877580326197299L;
    private Long id;
    private String name;
    private String pwd;
    private String userName;
    private String email;
    private String userId;
    private Set<RoleEntity> roles = new HashSet<>();
    private Set<String> authCodeList = new HashSet<>();
    private String isAdmin;

    /**
     * Gets the value of id
     *
     * @return the value of id
     */
    public Long getId() {
        return id;
    }

    /**
     * Sets the id
     *
     * @param id id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * Gets the value of name
     *
     * @return the value of name
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the name
     *
     * @param name name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets the value of pwd
     *
     * @return the value of pwd
     */
    public String getPwd() {
        return pwd;
    }

    /**
     * Sets the pwd
     *
     * @param pwd pwd
     */
    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    /**
     * Gets the value of userName
     *
     * @return the value of userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * Sets the userName
     *
     * @param userName userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * Gets the value of email
     *
     * @return the value of email
     */
    public String getEmail() {
        return email;
    }

    /**
     * Sets the email
     *
     * @param email email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Gets the value of roles
     *
     * @return the value of roles
     */
    public Set<RoleEntity> getRoles() {
        return roles;
    }

    /**
     * Sets the roles
     *
     * @param roles roles
     */
    public void setRoles(Set<RoleEntity> roles) {
        this.roles = roles;
    }

    /**
     * Gets the value of userId
     *
     * @return the value of userId
     */
    public String getUserId() {
        return userId;
    }

    /**
     * Sets the userId
     *
     * @param userId userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * Gets the value of authCodeList
     *
     * @return the value of authCodeList
     */
    public Set<String> getAuthCodeList() {
        return authCodeList;
    }

    /**
     * Sets the authCodeList
     *
     * @param authCodeList authCodeList
     */
    public void setAuthCodeList(Set<String> authCodeList) {
        this.authCodeList = authCodeList;
    }

    /**
     * Gets the value of isAdmin
     *
     * @return the value of isAdmin
     */
    public String getIsAdmin() {
        return isAdmin;
    }

    /**
     * Sets the isAdmin
     *
     * @param isAdmin isAdmin
     */
    public void setIsAdmin(String isAdmin) {
        this.isAdmin = isAdmin;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", userName='" + userName + '\'' +
                ", email='" + email + '\'' +
                ", userId='" + userId + '\'' +
                ", roles=" + roles +
                ", authCodeList=" + authCodeList +
                ", isAdmin='" + isAdmin + '\'' +
                '}';
    }
}
